package com.woniuxy.Test;

import com.woniuxy.Factory.BeanFactory;
import com.woniuxy.intface.Person;

/**
 * @Author：向天浩
 * @Date：2022/1/17 16:18
 * @Description :手写的解耦流程
 */
public class Test {
    public static void main(String[] args) {
        BeanFactory beanFactory = new BeanFactory();
        Person ch = beanFactory.getBean("ch");
        Person ch1 = beanFactory.getBean("ch");
        System.out.println(ch);
        System.out.println(ch1);
        ch.eat();
        ch1.eat();
    }
}

